package com.travel.service.impl;

import com.travel.dao.TArticleCommentsDao;
import com.travel.entity.TArticleComments;
import com.travel.service.TArticleCommentsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: travel
 * @ClassName TArticleCommentsServiceImpl
 * @author: wgwx
 * @create: 2022-08-12 17:26
 * @description:
 **/
@Service
public class TArticleCommentsServiceImpl implements TArticleCommentsService {
    @Autowired
    TArticleCommentsDao dao;
    @Override
    public TArticleComments getArticleComments() {
        return dao.getArticleComments();
    }

    @Override
    public List<TArticleComments> getAllComments() {
        return dao.getAllComments();
    }

    @Override
    public List<TArticleComments> findArticle() {
        return dao.findArticle();
    }

    @Override
    public List<TArticleComments> getCommentByParentId(Integer parentId) {
        return dao.getCommentByParentId(parentId);
    }

}
